/**
 * 辨别课程级别
 * @param {number} type - 数字级别
 * @returns {string} level - 汉字级别
 */
const useCourseType = (type: number): string => {
  let level = ''
  switch (type) {
    case 1:
      level = '初级';
      break;
    case 2:
      level = '中级';
      break;
    case 3:
      level = '高级';
      break;
    default:
      level;
  }
  return level
}

export default useCourseType